local skynet = require "skynet"
local sprotoloader = require "sprotoloader"

local max_client = 9999999


skynet.start(function()
	print("Server start")
	skynet.newservice("mg_save") 
	skynet.newservice("bjl/hall") 
	skynet.newservice("login")   
	local watchdog = skynet.newservice("watchdog")
	skynet.call(watchdog, "lua", "start", {
		port = skynet.getenv("port"),
		maxclient = max_client,
		nodelay = true,
	}) 
	skynet.exit() 
end)
 